package com.world.rickcloudendpoint.basic;

import java.net.InetSocketAddress;

/**
 * @description: 抽象的TCP服务
 * @author: jlsong
 * @date: 2021/12/22 21:08:44
 * @version: 1.0
 */
public abstract class AbstractNetServerService extends AbstractServerService {
    /**
     *  服务监听端口
     */
    protected int serverPort;
    /**
     *  服务监听地址
     */
    protected InetSocketAddress serverAddress;

    public AbstractNetServerService(String serviceId, int serverPort) {
        super(serviceId);
        this.serverPort = serverPort;
        this.serverAddress = new InetSocketAddress(serverPort);
    }
}
